<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>gradualchange</title>
	<script type="text/javascript">
		/*
		var a = {n:1};
		var b = a;
        a.x = a = {n:2};
        alert(a.x);
        alert(b.x);
        */
		//hide
		
		/*
		var vv = 0;
		var zz = 30;
		
		var h = window.setInterval(function(){
			
			if(zz > 0){
				vv = Math.round(zz/6);
				vv = (vv < 1) ? zz - 1 : zz - vv;
				zz = vv;
				console.log(vv, 0);
			}else{
				console.log('over');
				window.clearInterval(h);
			}
			
		}, 9);
		*/
		//show
		/*
		var x = 30;
		var v = 0;
		var z = 0;
		var w = window.setInterval(function(){
			
			if (z < x) {
        		v = Math.round((x - z) / 9);
       	 		v = (v < 1) ? z + 1 : v + z;
        		z = v;
				console.log(v);
    		}else {
				console.log('over');
        		window.clearInterval(w)
    		}
			
		}, 100);
		*/
		
		/*
		var depot = {};
		
		depot.n = depot.scale = 0;
		
		depot.update = function(){
			var 
				scale = depot.n - depot.scale,
				g = 0.55;
			
			if(Math.abs(scale) > 0.01){
				if(scale < 0)
					g /= 2;
					
				depot.scale += g*scale;
			}
			
			console.log(depot.scale);
		};
		
		depot.engine = window.setInterval(function(){
			
			depot.update();
		
		}, 1000);

		depot.bomb = window.setTimeout(function(){
			
			//depot.n = -1/6;
			depot.n = 1;
			//depot.n = 0;
			
		}, 6000);	
		
		depot.anotherbomb = window.setTimeout(function(){
			
			depot.n = 0;
			
		}, 12000);
		*/
		
		/*
		var b = 50;  //begin value
		var c = -50; //variation of the begin value
		//var c = +50;
		var t = 0;
		var d = 400;
		var start = new Date().getTime();
		var end;
		var z = window.setInterval(function(){
			end = new Date().getTime();
			t += (end - start);
			//console.log(end - start);
			if(t >= d){
				console.log('over');
				window.clearInterval(z);
				z=null;
			}else{
				console.log(swing(t, b, c, d));
			}
			start = end;
		}, 13);
		
		var swing = function(t, b, c, d){
			return ((-Math.cos(t / d * Math.PI) / 2) + 0.5) * c + b;
		};
		*/
		
	</script>
</head>
<body>
	
</body>
</html>